<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:include page="/WEB-INF/templateBackoffice/header.jsp"/>
<aside class="right-side">
    <section class="content-header">
        <nav class="navbar navbar-default">
            <div class="navbar-header">
            </div>
        </nav>
    </section>
    <section class="content">
        <div class="box box-primary">
            <div class="box-body table-responsive no-padding">
                <table class="table table-bordered table-striped">
                    <thead>
                        <tr class="sonata-ba-list-field-header">
                            <th class="sonata-ba-list-field-header-text">Societe</th>
                            <th class="sonata-ba-list-field-header-text">Secteur</th>
                            <th class="sonata-ba-list-field-header-text">Capital</th>
                            <th class="sonata-ba-list-field-header-text">Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <c:forEach items="${users}" var="user">
                            <tr>
                                <td class="sonata-ba-list-field sonata-ba-list-field-text"><c:out value="${user.nom}" /></td>
                                <td class="sonata-ba-list-field sonata-ba-list-field-text"><c:out value="${user.secteur}" /></td>
                                <td class="sonata-ba-list-field sonata-ba-list-field-text"><c:out value="${user.capitalisation}" /></td>
                                <td class="sonata-ba-list-field sonata-ba-list-field-text"><a href="membres?action=insert&entrepriseid=<c:out value="${user.idEntreprise}"/>"><i class="fa fa-plus"></i></a></td>
                                <!-- <td class="sonata-ba-list-field sonata-ba-list-field-text"><a href="users?action=edit&userid=<c:out value="${user.idEntreprise}"/>"><i class="fa fa-pencil"></i></a></td>
                                <td class="sonata-ba-list-field sonata-ba-list-field-text"><a href="users?action=delete&userid=<c:out value="${user.idEntreprise}"/>"><i class="fa fa-trash"></i></a></td>
                            --></tr>
                        </c:forEach>
                    </tbody>
                    <tbody>
                        <tr>
                            <th colspan="8">
                                <div class="form-inline">
                                    <div class="btn-group">
                                        <a href="societes?action=insert">
                                            <button class="btn btn-default" type="button">
                                                <i class="fa fa-plus-circle"></i>
                                                Ajouter Société
                                            </button>
                                        </a>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    <!--    <tr>
                            <td colspan="8">
                                <div class="text-center">
                                    <ul class="pagination">
                                        <c:forEach var="i" begin="1" end="${nbPage}" step="1">
                                            <li <c:if test="${pageActuelle == i}">class="active"</c:if>>
                                                <a href="user?page=${i}">${i}</a>
                                            </li>
                                        </c:forEach>
                                    </ul>
                                </div>
                            </td>
                        </tr>-->
                    </tbody>
                </table>
            </div>
        </div>
    </section>
</aside>
<jsp:include page="/WEB-INF/templateBackoffice/footer.jsp"/>
